<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('tache/'.($form->getObject()->isNew() ? 'create' : 'update?tac_id='.$form->getObject()->getTacId())) ?>" method="post">

<?php if (!$form->getObject()->isNew()): ?>
	<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>

<?php echo $form->renderGlobalErrors() ?>
<?php echo $form->renderHiddenFields(false) ?>

<table class="detail">
	<tbody>
	<?php 
		if (!$form->getObject()->isFils()) {
			echo $form['tac_cat_id']->renderRow(); 
		}
	?>
	<?php echo $form['tac_libelle']->renderRow(array('size' => 50)); ?>
	<?php echo $form['tac_description']->renderRow(array('cols' => 50)); ?>
	<?php echo $form['tac_urgence']->renderRow(); ?>
	<?php echo $form['tac_date_debut']->renderRow(); ?>
	<?php echo $form['tac_date_echeance']->renderRow(); ?>
	<?php echo $form['tac_charge_estimee']->renderRow(); ?>

	</tbody>
</table>
<input type="submit" value="Enregistrer" />
</form>
